<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="${pageContext.request.contextPath }/css/common.css" type="text/css" rel="stylesheet"></link>
<link href="${pageContext.request.contextPath }/css/main.css" type="text/css" rel="stylesheet"></link>
<script src="${pageContext.request.contextPath }/js/jquery-1.7.2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
		
$("#Type_Name").blur(function(){
			if($("#Type_Name").val() == ""){
				$("#titleError").text("请填写新闻动态类型.");
			}else{
				$("#titleError").text("");
			}
		});
		$("#sub").click(function(){
			
			if($("#Type_Name").val() == ""){
				
				alert("新闻动态不能为空");
				return false;
			}
		});
	});
</script>
</head>
<body>
	<div class="result-wrap" style="margin-left: 10%;">
            <form action="${pageContext.request.contextPath }/news/updateNewsType.action" method="post" id="myform" name="myform">
                <div class="config-items">
                    <div class="config-title">
                        <h1 style="font-size: 26px;font-family: Tahoma,Geneva,sans-serif;color: #666;">修改新闻动态类型</h1>
                    </div>
                    <div class="result-content">
                        <table width="100%" class="insert-tab">
                            <tr>
                                <th width="15%"><i class="require-red">*</i>新闻动态类型：</th>
                                <td>
                                	<input type="text" id="Type_Name" name="Type_Name" value="${type }" size="85" class="common-text">
                                	 <font id="titleError" style="color: red;"></font>
                                </td>
                            </tr>
                                <tr>
                                    <th><input type="hidden" name="id" value="${id }"></th>
                                    <td>
                                        <input type="submit" id="sub" value="提交" class="btn btn-primary btn6 mr10">
                                        <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                                    </td>
                                </tr>
                            </table>
                    </div>
				</div>
			</form>
		</div>
</body>
</html>